package com.example.ibsp_demo.pojo.log;

import java.time.LocalDateTime;

public class AdminOperationLog {

    private Integer logId;
    private Integer aid;
    private String operationType;
    private Integer operatedId;//被操作对象ID（用户ID/内容ID）
    private LocalDateTime operationTime;
    private String operationNote;//操作备注（如封禁原因）

    // 无参构造
    public AdminOperationLog() {
    }

    // 有参构造
    public AdminOperationLog(Integer logId, Integer aid, String operationType,
                             Integer operatedId, LocalDateTime operationTime, String operationNote) {
        this.logId = logId;
        this.aid = aid;
        this.operationType = operationType;
        this.operatedId = operatedId;
        this.operationTime = operationTime;
        this.operationNote = operationNote;
    }

    // Getter and Setter

    public Integer getLogId() {
        return logId;
    }

    public void setLogId(Integer logId) {
        this.logId = logId;
    }

    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public String getOperationType() {
        return operationType;
    }

    public void setOperationType(String operationType) {
        this.operationType = operationType;
    }

    public Integer getOperatedId() {
        return operatedId;
    }

    public void setOperatedId(Integer operatedId) {
        this.operatedId = operatedId;
    }

    public LocalDateTime getOperationTime() {
        return operationTime;
    }

    public void setOperationTime(LocalDateTime operationTime) {
        this.operationTime = operationTime;
    }

    public String getOperationNote() {
        return operationNote;
    }

    public void setOperationNote(String operationNote) {
        this.operationNote = operationNote;
    }

    // toString 方法
    @Override
    public String toString() {
        return "AdminOperationLog{" +
                "logId=" + logId +
                ", aid=" + aid +
                ", operationType='" + operationType + '\'' +
                ", operatedId=" + operatedId +
                ", operationTime=" + operationTime +
                ", operationNote='" + operationNote + '\'' +
                '}';
    }
}
